package com.yswee.mallnavi.entity.common;

import com.google.gson.annotations.SerializedName;
import com.yswee.mallnavi.entity.BaseEntity;

public class AdsEntity extends BaseEntity {

    private static final long serialVersionUID = 8536080945163059784L;

    public String name;
    public String description;
    @SerializedName("pictureUrl")
    public String pic;
    public int intervalTime;

    public int getIntervalTime() {
        int time = 5;
        if (intervalTime > 0 && intervalTime <= 120) {
            time = intervalTime;
        }
        return time * 1000;
    }

}
